package coffee;

import framework.Factory;
import framework.Product;

import java.util.Vector;

public class CoffeeFactory extends Factory
{
    private Vector<String> categories =new Vector<>();
    @Override
    protected Product createProduct(String category)
    {
        Coffee coffee=new Coffee(category);
        return coffee;
    }

    @Override
    protected void registerProduct(Product product)
    {
        categories.add(((Coffee)product).getCategory());
    }
}
